package cn.it.mapper;

import cn.it.domain.Good;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IGoodMapper {
    @Select("select * from shopping.tb_goods where business_id = #{typeId}")
    public List<Good> queryGoodsByType(Integer typeId);
    @Select("select * from shopping.tb_goods")
    public List<Good> queryGoodAll();
    @Select("select * from shopping.tb_goods where id = #{id}")
    public Good queryGoodById(Integer id);
}
